package com.caseProcess.service.impl;

import com.caseProcess.entity.Operation;
import com.caseProcess.entity.Resources;
import com.caseProcess.mapper.OperationDao;
import com.caseProcess.mapper.ResourcesDao;
import com.caseProcess.service.OperationService;
import com.caseProcess.service.ResourcesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OperationServiceImpl implements OperationService {

    @Resource
    OperationDao operationDao;

    @Override
    public int insert(Operation operation) {
        return operationDao.insert(operation);
    }

    @Override
    public List<Operation> selectOperation(Operation operation, String startTime, String endTime) {
        return operationDao.selectOperation(operation,startTime,endTime);
    }


}
